<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 新 Bootstrap4 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="Ajax.css">
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="Ajax.js"></script>
    <title>实例1：通过ajax全局刷新来计算BMI的值</title>
    <style>
        table,
        th,
        td {
            border: 1px solid black;
            border-collapse: collapse;
        }

        th,
        td {
            padding: 5px;
        }
    </style>
</head>

<body>
    <!--     
    <div id="div1">1111</div>
    <button id="btn" onclick="myfun_12()">点击获取数据</button> -->

    <!-- <div id="div2">2222</div>
    <button id="btn2" onclick="myfun_1()">再次点击获取数据</button>
     -->

    <!-- <div id="div3">1111</div>
    <button id="btn" onclick="myfun_2(2,10)" type="button">点击获取数据</button> -->
    <!-- 
    <button class="btn btn-primary m-auto" onclick="myfun_3(2,10)" type="button">点击获取数据</button>
    <div id="div3" class="m-auto" style="width: 60%;"></div> -->

    <button class="btn btn-primary m-auto" onclick="myfun_4(2,10)" type="button">点击获取数据</button>
    <div id="div4" class="m-auto" style="width: 70%; height: 300px; overflow-y: scroll;"></div>
    <div class="container">
        <ul class="pagination">
            <li class="page-item shadow"><a href="#" class="page-link">上一页</a></li>
            <li class="page-item active shadow"><a href="#" class="page-link page-link-1">1</a></li>
            <li class="page-item shadow page-item-2"><a href="#" class="page-link page-link-2">2</a></li>
            <li class="page-item shadow"><a href="#" class="page-link page-link-3">3</a></li>
            <li class="page-item shadow"><a href="#" class="page-link">下一页</a></li>
        </ul>

        <form>
            <div class="form-group W-50">
                <select class="form-control W-50" id="sel1" style="width: 22%;">
                    <option value="2" class="c2">每页2条</option>
                    <option value="10" class="c10" selected="selected">每页10条</option>
                    <option value="20" class="c20">每页20条</option>
                    <option value="50" class="c50">每页50条</option>
                </select>
            </div>
        </form>



        <div>
            <input type="text" name="ziduan" id="input">
            <button type="button" class="btn btn-success">搜索</button>
        </div>
    </div>


    <!-- <button class="btn btn-primary m-auto" onclick="myfun_5(1,10)" type="button">点击获取数据</button>
    <div id="div5" class="m-auto" style="width: 70%; height: 300px; overflow-y: scroll;"></div>
    <div class="container">
        <ul class="pagination">
            <li class="page-item shadow"><a href="#" class="page-link">上一页</a></li>
            <li class="page-item active shadow"><a href="#" class="page-link page-link-1">1</a></li>
            <li class="page-item shadow page-item-2"><a href="#" class="page-link page-link-2">2</a></li>
            <li class="page-item shadow"><a href="#" class="page-link page-link-3">3</a></li>
            <li class="page-item shadow"><a href="#" class="page-link">下一页</a></li>
        </ul>

        <form>
            <div class="form-group W-50">
                <select class="form-control W-50" id="sel1" style="width: 22%;">
                    <option value="2" class="c2">每页2条</option>
                    <option value="10" class="c10" selected="selected">每页10条</option>
                    <option value="20" class="c20">每页20条</option>
                    <option value="50" class="c50">每页50条</option>
                </select>
            </div>
        </form>



        <div>
            <input type="text" name="ziduan" id="input">
            <button type="button" class="btn btn-success">搜索</button>
        </div>
    </div> -->


    <!-- <h1>XMLHttpRequest 对象</h1>

    <button type="button" onclick="loadXMLDoc()">获取我收藏的 CD</button>
    <br><br>
    <table id="demo"></table> -->

    <!-- <table>
        <thead>
            <tr>
                <th>id</th>
                <th>文本</th>
                <th>类型</th>
                <th>名字</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>2345</td>
                <td>djkfkkld</td>
                <td>video</td>
                <td>kk</td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
        </tbody>
    </table> -->

    <input id="name" type="text">
    <button id="add">+</button>

</body>

</html>